import axios from "../axios.js";

const classes = {
    getClassData(params) {
        return axios({
            url: "/classes/getClasses",
            method: "GET",
            params,
        });
    },
    deleteOneClass(data) {
        return axios({
            url: "/classes/deleteClasses",
            method: "DELETE",
            data,
        });
    },
    addOneClass(data) {
        console.log(data);
        return axios({
            url: "/classes/addClasses",
            method: "POST",
            data,
        });
    },
    getClassesBySubjectsId(params){
        return axios({
            url:"/classes/getClassesBySubjectsId",
            method:"GET",
            params,
        })
    }
};


export default classes;